<?php

/**
 * Photoservice form base class.
 *
 * @package    alika
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BasePhotoserviceForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'          => new sfWidgetFormInputHidden(),
      'name'        => new sfWidgetFormInput(),
      'file_path1'  => new sfWidgetFormInput(),
      'file_path2'  => new sfWidgetFormInput(),
      'file_path3'  => new sfWidgetFormInput(),
      'file_path4'  => new sfWidgetFormInput(),
      'file_path5'  => new sfWidgetFormInput(),
      'file_path6'  => new sfWidgetFormInput(),
      'file_path7'  => new sfWidgetFormInput(),
      'file_path8'  => new sfWidgetFormInput(),
      'file_path9'  => new sfWidgetFormInput(),
      'file_path10' => new sfWidgetFormInput(),
      'file_path11' => new sfWidgetFormInput(),
      'file_path12' => new sfWidgetFormInput(),
      'file_path13' => new sfWidgetFormInput(),
      'file_path14' => new sfWidgetFormInput(),
      'file_path15' => new sfWidgetFormInput(),
      'file_path16' => new sfWidgetFormInput(),
      'file_path17' => new sfWidgetFormInput(),
      'file_path18' => new sfWidgetFormInput(),
      'file_path19' => new sfWidgetFormInput(),
      'file_path20' => new sfWidgetFormInput(),
      'name1'       => new sfWidgetFormInput(),
      'name2'       => new sfWidgetFormInput(),
      'name3'       => new sfWidgetFormInput(),
      'name4'       => new sfWidgetFormInput(),
      'name5'       => new sfWidgetFormInput(),
      'name6'       => new sfWidgetFormInput(),
      'name7'       => new sfWidgetFormInput(),
      'name8'       => new sfWidgetFormInput(),
      'name9'       => new sfWidgetFormInput(),
      'name10'      => new sfWidgetFormInput(),
      'name11'      => new sfWidgetFormInput(),
      'name12'      => new sfWidgetFormInput(),
      'name13'      => new sfWidgetFormInput(),
      'name14'      => new sfWidgetFormInput(),
      'name15'      => new sfWidgetFormInput(),
      'name16'      => new sfWidgetFormInput(),
      'name17'      => new sfWidgetFormInput(),
      'name18'      => new sfWidgetFormInput(),
      'name19'      => new sfWidgetFormInput(),
      'name20'      => new sfWidgetFormInput(),
      'width'       => new sfWidgetFormInput(),
      'height'      => new sfWidgetFormInput(),
      'mat_id'      => new sfWidgetFormPropelChoice(array('model' => 'Material', 'add_empty' => true)),
    ));

    $this->setValidators(array(
      'id'          => new sfValidatorPropelChoice(array('model' => 'Photoservice', 'column' => 'id', 'required' => false)),
      'name'        => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path1'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path2'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path3'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path4'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path5'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path6'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path7'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path8'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path9'  => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path10' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path11' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path12' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path13' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path14' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path15' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path16' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path17' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path18' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path19' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'file_path20' => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name1'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name2'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name3'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name4'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name5'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name6'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name7'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name8'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name9'       => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name10'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name11'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name12'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name13'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name14'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name15'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name16'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name17'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name18'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name19'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'name20'      => new sfValidatorString(array('max_length' => 250, 'required' => false)),
      'width'       => new sfValidatorInteger(array('required' => false)),
      'height'      => new sfValidatorInteger(array('required' => false)),
      'mat_id'      => new sfValidatorPropelChoice(array('model' => 'Material', 'column' => 'id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('photoservice[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Photoservice';
  }


}
